<template>
  <view class="supply-order">
    <view class="supply-panel">

      <view class="supply-order-list">
        <tui-list-view>
          <tui-list-cell :lineLeft="false" :border="false" @click="detail">
            <view class="tui-item-box">
              <view class="tui-msg-box">
                <image src="../../../static/icon-cart-hot.png" class="tui-msg-pic" mode="widthFix"></image>
                <view class="tui-msg-item">
                  <view class="tui-msg-name">商品1</view>
                </view>
                <view class="tui-unit">
                  x1
                </view>
              </view>
              <view class="tui-msg-right">
                <view class="tui-msg-time">￥12</view>
              </view>
            </view>
          </tui-list-cell>
        </tui-list-view>
      </view>

      <tui-list-view>
        <tui-list-cell :arrow="false">
          <view class="tui-item-box">
            <text class="tui-list-cell_name">合计数量</text>
            <view class="tui-right">4个</view>
          </view>
        </tui-list-cell>
        <tui-list-cell :arrow="false">
          <view class="tui-item-box">
            <text class="tui-list-cell_name">合计金额</text>
            <view class="tui-right">￥150</view>
          </view>
        </tui-list-cell>
        <tui-list-cell @click="detail" :arrow="true">
          <view class="tui-item-box">
            <text class="tui-list-cell_name">积分抵扣</text>
            <view class="tui-right">选择使用积分</view>
          </view>
        </tui-list-cell>
        <tui-list-cell @click="detail" :arrow="true">
          <view class="tui-item-box">
            <text class="tui-list-cell_name">优惠券</text>
            <view class="tui-right">选择使用优惠券</view>
          </view>
        </tui-list-cell>
      </tui-list-view>
    </view>

    <view class="submit-bar">
      <view class="submit-bar-bar">
        <view class="submit-bar-text">
          <view class="left-text">
            合计：<text class="money">￥256.00</text>
          </view>
          <view class="has-price">
            已减免￥0
          </view>
        </view>
        <view class="submit-btn">
          <tui-button type="danger">提交订单</tui-button>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import tuiButton from "@/components/thorui/tui-button/tui-button"
  import tuiListView from "@/components/thorui/tui-list-view/tui-list-view";
  import tuiListCell from "@/components/thorui/tui-list-cell/tui-list-cell";
  export default {
    components: {
      tuiButton,
      tuiListView,
      tuiListCell
    }
  }
</script>
<style lang="less">
  .tui-item-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .tui-list-cell_name {
    padding-left: 20rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tui-ml-auto {
    margin-left: auto;
  }

  .tui-right {
    margin-left: auto;
    margin-right: 34rpx;
    font-size: 26rpx;
    color: #999;
  }

  .tui-logo {
    height: 52rpx;
    width: 52rpx;
    flex-shrink: 0;
  }

  .tui-flex {
    display: flex;
    align-items: center;
  }

  .tui-msg-box {
    display: flex;
    align-items: center;
    flex: 1;
    .tui-unit{
      align-items: center;
      flex-basis: 50px;
    }
  }

  .tui-msg-pic {
    width: 80rpx;
    height: 80rpx;
    border-radius: 12rpx;
    display: block;
    margin-right: 24rpx;
    flex-shrink: 0;
  }

  .tui-msg-item {
    max-width: 500rpx;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    align-items: center;
  }

  .tui-msg-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 34rpx;
    line-height: 1;
    color: #262b3a;
  }

  .tui-msg-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 26rpx;
    line-height: 1;
    color: #9397a4;
  }

  .tui-msg-right {
    max-width: 120rpx;
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .tui-right-dot {
    height: 76rpx !important;
    padding-bottom: 10rpx !important;

  }

  .tui-msg-time {
    width: 100%;
    font-size: 24rpx;
    line-height: 24rpx;
    color: #9397a4;
  }
  .bottom-btn{
    padding: 100rpx 30rpx 30rpx 30rpx;
  }
  .user-wrapper {
    background-color: #fff;
    height: 100%;
    .avatar-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 120rpx 0;
      image {
        width: 88rpx;
        height: 88rpx;
        border-radius: 50%;
      }
    }
  }
  .submit-bar{
    width: 100%;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    .submit-bar-bar{
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 0 0 30rpx;
      .submit-bar-text{
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 10rpx;
        .left-text{
          font-size: 24rpx;
          color: #666;
          .money{
            color: #FF5831;
            font-size: 36rpx;
          }
        }
        .has-price{
          color: #999999;
          font-size: 26rpx;
        }
      }
      .submit-btn{
        flex-basis: 240rpx;
        background-color: #FF5831;
      }
    }
  }
</style>
